.ChatItem {
    position: relative;
    min-height: 70px;
    margin: 10px;
    text-align: left;
    padding-top: 30px;
}

.ChatHeader {
    position: absolute;
    left: 0;
    top: 0;
    cursor: pointer;
}

.UserImg {
    display: inline-block;
    position: relative;
    color: #606266;
    font-size: 14px;
}

.UserImg img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.ChatName {
    position: absolute;
    left: 55px;
    top: 0;
    display: inline-block;
    max-width: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    line-height: 20px;
}

.ChatContainer {
    display: inline-block;
    overflow: hidden;
}

.ChatContent {
    background-color: #e5e5e5;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 14px;
    color: #666;
    max-width: 300px;
    margin-left: 60px;
    position: relative;
}

.ChatContent::before {
    content: "";
    position: absolute;
    left: -13px;
    width: 15px;
    height: 15px;
    border: 0 solid transparent;
    border-bottom-width: 12px;
    border-bottom-color: currentColor;
    border-radius: 0 0 0 15px;
    color: #e5e5e5;
}

.ChatItemSelf {
    display: flex;
    flex-direction: row-reverse;
}

.ChatItemSelf .ChatContent {
    margin-right: 60px;
    right: 0;
    background-color: #61dafb;
}

.ChatItemSelf .ChatHeader {
    right: 0;
    left: auto;
}

.ChatItemSelf .ChatName {
    left: auto;
    right: 55px;
}

.ChatItemSelf .ChatContent::before {
    content: "";
    right: -13px;
    left: auto;
    border-radius: 0 0 15px 0;
    color: #61dafb;
}

